package week_three_day03_test;

import java.util.ArrayList;

import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;

public class SAXParserHandler extends DefaultHandler {
	int bookIndex =0;
	String value = null;
	Book book = null;
	private ArrayList<Book> bookList = new ArrayList<Book>();
	
	public ArrayList<Book> getBookList(){
		return bookList;
	}
	
	@Override
	public void startDocument() throws SAXException {
		
	}
	
	@Override
	public void startElement(String uri, String localName, String qName,
			Attributes attributes) throws SAXException {
	}
	
	@Override
	public void characters(char[] ch, int start, int length)
			throws SAXException {
	}
	
	@Override
	public void endElement(String uri, String localName, String qName)
			throws SAXException {
	}

	
	@Override
	public void endDocument() throws SAXException {
			
	}

}
